#ifndef RINGBUFFER_H_
#define RINGBUFFER_H_

#include "../Globals/globals.h"

typedef enum {OK,LOWERLIMIT,UPPERLIMIT} BUFF_RC;

typedef struct ringBuffer{
	char* buffer;
	int bufferSize;
	int upperLimit;
	int lowerLimit;
} ringBuffer_s, *ringBuffer_p;


ringBuffer_s inputRingBuffer;

BOOL initializeRingBuffer(ringBuffer_p this,int size);
void destroyRingBuffer(ringBuffer_p this);
BUFF_RC writeToRingBuffer(ringBuffer_p this,char* input);
BUFF_RC readFromRingBuffer(ringBuffer_p this,char* output);

#endif /*RINGBUFFER_H_*/
